<?php
/**
 *
 * Description: Default Index template to display loop of blog posts
 *
 * @package WordPress
 * @subpackage WP-Bootstrap
 * @since WP-Bootstrap 0.1
 */

get_header(); ?>
<br>
  <div class="row">
    <div class="container">
      <?php if (function_exists('bootstrapwp_breadcrumbs')) bootstrapwp_breadcrumbs(); ?>
    </div><!--/.container -->
  </div><!--/.row -->
  


  <div class="span9">
   <div class="row">
                 <?php if ( have_posts() ) : ?>
                <?php while ( have_posts() ) : the_post(); ?>
             <div class="span3">
                <div class="thumbnail">
                  <img class="item_thumb" alt="260x180" data-src="holder.js/260x180" style="width: 260px; height: 180px;" src="">
                  <div class="caption">
                    <h3><a class="item_name"href="<?php the_permalink();?>"><?php the_title()?> </a></h3>
                    <p><?php the_excerpt(); ?> </p>
                    <?php $post_meta = get_metadata('post', $post->ID, 'prace', true);?>
               <span class="item_price"><?php echo $post_meta." грн.";?> </span>
              <input type="text" value="1" class="item_quantity input-mini">
                 <input type="button" class="item_add btn " value="Додати в кошик" />
                  </div>
                </div>
                 <br>
                </div>
              <?php endwhile; ?>
            <?php else : ?>
               
                <?php endif; ?>
 <?php bootstrapwp_content_nav('nav-below');?>
</div>
</div><!-- /.span8 -->

<?php get_sidebar('blog'); ?>
<?php get_footer(); ?>